package indi.a709924470.scpwiki;

import android.content.Intent;
import android.os.Handler;
import android.os.Message;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.Window;
import android.view.WindowManager;

public class HackIn extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);
        requestWindowFeature(Window.FEATURE_NO_TITLE);
        setContentView(R.layout.activity_hack_in);
        hlr.sendEmptyMessageDelayed(0,1500);
    }

    private Handler hlr = new Handler() {
        @Override
        public void handleMessage(Message message) {
            openMainPage();
            super.handleMessage(message);
        }
    };

    public void openMainPage(){
        Intent intent = new Intent(HackIn.this, MainPageActivity.class);
        startActivity(intent);
        finish();
    }
}
